import request from '@/utils/request'

// 查询政治面貌列表
export function listPoliticalstatus(query) {
  return request({
    url: '/dictionaries/politicalstatus/list',
    method: 'get',
    params: query
  })
}

// 查询政治面貌详细
export function getPoliticalstatus(id) {
  return request({
    url: '/dictionaries/politicalstatus/' + id,
    method: 'get'
  })
}

// 新增政治面貌
export function addPoliticalstatus(data) {
  return request({
    url: '/dictionaries/politicalstatus',
    method: 'post',
    data: data
  })
}

// 修改政治面貌
export function updatePoliticalstatus(data) {
  return request({
    url: '/dictionaries/politicalstatus',
    method: 'put',
    data: data
  })
}

// 删除政治面貌
export function delPoliticalstatus(id) {
  return request({
    url: '/dictionaries/politicalstatus/' + id,
    method: 'delete'
  })
}
